package com.halflife.framework.participant.range;

import com.google.gson.annotations.Expose;
import com.halflife.framework.domain.BaseDomain;
import com.halflife.framework.generator.annotation.Join;
import com.halflife.framework.generator.annotation.QueryAnn;

/**
 * 权限信息
 * @author liuj3
 *
 */
@QueryAnn(mainTitle = "权限管理",title = "权限管理",table = "t_rangeinfo")
public class RangeInfo extends BaseDomain{

	@QueryAnn(value = "权限名称", operate = "like",refered = true)
	@Expose
	private String rangeName;
	@QueryAnn(value = "权限编码", operate = "like",refered = true)
	private String rangeNo;
	@QueryAnn(value = "权限路径", refered = true)
	private String pathkey;
	@QueryAnn(value = "验证路径", refered = true)
	private String validPath;
	@QueryAnn(value = "父权限")
	private Integer rangeInfoId;
	@QueryAnn(value = "父权限")
	@Join()
	private RangeInfo rangeInfo;

	@QueryAnn(value = "权限类型 0菜单权限  1功能权限",refered = true)
	private String rangeType;
	@QueryAnn(value = "权限状态  0正常权限 1全局权限 ,任何人都能看到", refered = true)
	private Integer rangeState;

	@QueryAnn(value = "菜单权限图标")
	private String icon;

	//查询字段
	@QueryAnn(realValue = "rangeInfo.rangeName",queryed = true,persist = false)
	private String parentRangeInfoName;

	public String getRangeName() {
		return rangeName;
	}

	public void setRangeName(String rangeName) {
		this.rangeName = rangeName;
	}

	public String getRangeNo() {
		return rangeNo;
	}

	public void setRangeNo(String rangeNo) {
		this.rangeNo = rangeNo;
	}

	public String getPathkey() {
		return pathkey;
	}

	public void setPathkey(String pathkey) {
		this.pathkey = pathkey;
	}

	public Integer getRangeInfoId() {
		return rangeInfoId;
	}

	public void setRangeInfoId(Integer rangeInfoId) {
		this.rangeInfoId = rangeInfoId;
	}

	public RangeInfo getRangeInfo() {
		return rangeInfo;
	}

	public void setRangeInfo(RangeInfo rangeInfo) {
		this.rangeInfo = rangeInfo;
	}

	public String getRangeType() {
		return rangeType;
	}

	public void setRangeType(String rangeType) {
		this.rangeType = rangeType;
	}

	public Integer getRangeState() {
		return rangeState;
	}

	public void setRangeState(Integer rangeState) {
		this.rangeState = rangeState;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getParentRangeInfoName() {
		return parentRangeInfoName;
	}

	public void setParentRangeInfoName(String parentRangeInfoName) {
		this.parentRangeInfoName = parentRangeInfoName;
	}

	public String getValidPath() {
		return validPath;
	}

	public void setValidPath(String validPath) {
		this.validPath = validPath;
	}
}
